package com.lcf.test;

import com.lcf.demo.Calculation;

import java.util.Scanner;

public class Demo6 {
    public static void main(String[] args) {
//        创建实例化对象
        Calculation c = new Calculation();
//调用方法
        double add = c.getAdd(122,5);
        double sub = c.getSub(122,5);
        double times = c.getTimes(122,5);
        double div = c.getDiv(122, 5);
//        打印结果
        System.out.println("加法结果 :" +add );
        System.out.println("减法结果:" + sub);
        System.out.println("乘法结果: " + times);
        System.out.println("除法结果:" + div);


//        double getAdd = c.getAdd(122, 5);
//        double getSub = c.getSub(10, 5);
//        double getTimes = c.getTimes(10, 5);
//        double getDiv = c.getDiv(10, 5);
//        // 打印结果
//        System.out.println("加法结果: " + getAdd);
//        System.out.println("减法结果: " + getSub);
//        System.out.println("乘法结果: " + getTimes);
//        System.out.println("除法结果: " + getDiv);
    }
}




